package secondriver.springsubway.example.rpv;


import secondriver.springsubway.example.rpv.validator.AnnotationParameterValidator;
import secondriver.springsubway.example.rpv.validator.ConfigureParameterValidator;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by ZhangXiao on 2015/6/11.
 */
public class ParameterValidatorHelper {

    public static ParameterValidatorResult configureParameterValidator(Class parameterBeanClass, HttpServletRequest request) {
        return ConfigureParameterValidator.instance().handleParameterValidator(parameterBeanClass,
                request);
    }

    public static ParameterValidatorResult annotationParameterValidator(Class parameterBeanClass, HttpServletRequest
            request) {
        return AnnotationParameterValidator.instance().handleParameterValidator(
                parameterBeanClass, request);
    }

}
